package com.qcby.chatservice.common.exception;

import java.io.Serializable;

/**
 * 聊天业务异常
 *
 * @author cong.zhen
 * @date 2023/01/07
 */
public class ChatException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = 6037840863824072186L;
    private String code;

    public ChatException() {
    }

    public ChatException(String message, Throwable cause) {
        super(message, cause);
    }

    public ChatException(String message) {
        super(message);
    }

    public ChatException(Throwable cause) {
        super(cause);
    }

    public ChatException(String message, String code) {
        super(message);
        this.code = code;
    }

    public ChatException(String message, String code, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }
}
